package com.ruoyi.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.util.jwt.SecurityUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/app/token")
@Slf4j
public class TestToken extends BaseController {

    @RequestMapping("/test")
    public AjaxResult test() {
        return AjaxResult.success(SecurityUtils.getRequestHead());
    }

}
